package cn.crce.cloud9.simple;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 08:49
 */
public class Case9 {
    public static void main(String args[]){
        int i=0;
        String greetings[] ={ "Hello World!","Hello!","HELLO WORLD!!"};
        while (i<4){
            try{
                //*********Found********
                System.out.println(greetings[i]);
            }
            //*********Found********
            catch (ArrayIndexOutOfBoundsException e){
                //*********Found********
                System.out.println("Catch " + e.getMessage());
                System.out.println("Ending the print.");
            }
         finally{
                System.out.println("---------------------");
            }
            //*********Found********
            i ++ ;
        }
    }
}
